﻿using UnityEngine;
using System.Collections;
using Login;
using UI;

namespace UI
{
    public class LoginUpdateUI : MonoBehaviour
    {
        public LoginUI loginUI;
        public UISlider updateSlider;
        public UILabel updateWord;

        public void Show()
        {
            gameObject.SetActive(true);
            Reset();
        }

        public void Hide()
        {
            gameObject.SetActive(false);
        }

        public void SetUpdateSliderValue(float value)
        {
            updateSlider.value = value;
        }

        public void SetUpdateTipWord(string tip)
        {
            updateWord.text = tip;
        }

        public void Reset()
        {
            updateWord.text = "";
            updateSlider.value = 0;
        }
    }

}